<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/backup.png" alt="" /> <?php echo $heading_title; ?></h1>
      <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo $button_import; ?></span></a><a onclick="location='<?php echo $export; ?>'" class="button"><span><?php echo $button_export; ?></span></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
          <tr>
            <td colspan="2"><?php echo $entry_description; ?></td>
          </tr>
          <tr>
            <td width="25%"><?php echo $entry_restore; ?></td>
            <td><input type="file" name="upload" /><?php echo $warning_backup; ?></td>
          </tr>
          <tr>
            <td width="25%"><?php echo $process_mode; ?></td>
            <td>
            <input type="checkbox" name="process_all_sheet" id="process_all_sheet" onchange="process_all_sheet_click(this);"  /><label for="process_all_sheet"><?php echo $process_all_sheet; ?></label><br />
            <input type="checkbox" name="process_category" id="process_category" onchange="$('#process_all_sheet').attr('checked', false)"  /><label for="process_category"><?php echo $process_category; ?></label><br />
            <input type="checkbox" name="process_product" id="process_product" onchange="$('#process_all_sheet').attr('checked', false)" /><label for="process_product"><?php echo $process_product; ?></label><br />
            <input type="checkbox" name="process_product_img" id="process_product_img" onchange="$('#process_all_sheet').attr('checked', false)" /><label for="process_product_img"><?php echo $process_product_img; ?></label><br />
            <input type="checkbox" name="process_option" id="process_option" onchange="$('#process_all_sheet').attr('checked', false)"/><label for="process_option"><?php echo $process_option; ?></label><br />
            <input type="checkbox" name="process_attribute" id="process_attribute" onchange="$('#process_all_sheet').attr('checked', false)"/><label for="process_attribute"><?php echo $process_attribute; ?></label><br />
            <input type="checkbox" name="process_special" id="process_special" onchange="$('#process_all_sheet').attr('checked', false)" /><label for="process_special"><?php echo $process_special; ?></label><br />
            <input type="checkbox" name="process_discount" id="process_discount" onchange="$('#process_all_sheet').attr('checked', false)"/><label for="process_discount"><?php echo $process_discount; ?></label><br />
            <input type="checkbox" name="process_reward" id="process_reward" onchange="$('#process_all_sheet').attr('checked', false)"/><label for="process_reward"><?php echo $process_reward; ?></label>
            </td>
          </tr>          
        </table>
      </form>
    </div>
  </div>
</div>
<script language="javascript" type="text/javascript">
    process_all_sheet_click = function(obj){
            $('input[name=process_category]').attr('checked', obj.checked);
            $('input[name=process_product]').attr('checked', obj.checked);
            $('input[name=process_product_img]').attr('checked', obj.checked);
            $('input[name=process_option]').attr('checked', obj.checked);
            $('input[name=process_attribute]').attr('checked', obj.checked);
            $('input[name=process_special]').attr('checked', obj.checked);
            $('input[name=process_discount]').attr('checked', obj.checked);
            $('input[name=process_reward]').attr('checked', obj.checked);
    }
</script>
<?php echo $footer; ?>